<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Effettua login</title>
</head>
	<body>
		<form name="formProva" action="ControllaRegistrazione.jsp" method="post" onsubmit="vai()">
			Inserisci il nome:<input type="text" id="01" value="" name="nome">
			Inserisci il cognome:<input type="text" id="02" value="" name="cognome">
			Inserisci la mail: <input type="text" id="03" value="" name="mail">
			Inserisci la password: <input type="password" id="04" name="pass">
			<input type="hidden" id="05" value="1" name="JSON">
			<input type="submit" value="Invia">
		</form>
		<script>
		function vai(){
				var r={"nome":document.forms["formProva"]["nome"].value,        
						"cognome":document.forms["formProva"]["cognome"].value,
						"email":document.forms["formProva"]["mail"].value,
						"password":document.forms["formProva"]["pass"].value
				};
				document.forms["formProva"]["JSON"].value=JSON.stringify(r);				
			}
		</script>
	</body>
</html>
